<?php  require_once 'conn.php';require_once './statusCode.php';$statusCode = $_POST['statusCode'];if (isset($statusCode) && isValidStatusCode($statusCode)){ $endpoint = "SELECT * FROM userdata";$result = $conn->query($endpoint); if ($conn->error) { die("FALSE：" . $conn->error); } $allInfo = $result -> fetch_all(MYSQLI_ASSOC); header("Content-Type: application/json; charset=utf-8"); echo json_encode([ "errno" => 0,  "allInfo" => $allInfo, ]); $conn->close();  }else{header('Content-Type: application/json'); echo json_encode([ 'errno' => 1, 'message' => '无权访问！！！' ]);}?>  